home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Utilities Experience
/
The Utilities Experience - Volume 1.iso
/
software
/
misc
/
e-n
/
hsc
/
src_docs
/
features
/
spctags.hsc
< prev
next >
Wrap
Text File
|
1995-10-07
|
2KB
|
76 lines
<$INCLUDE FILE="inc/macro.hsc">
<WEBPAGE chapter="hsc - Features - " title="Special Tags">
<B>hsc</B> adds some special tags, which can be quite useful for maintainers
of big HTML-projects. If you use them right, the can save a lot of time
and nerves.
<H2>Comments</H2>
You can insert a comments with
<BLOCKQUOTE>
<TG>* This is a hsc-comment *</TG>
</BLOCKQUOTE>
You can also nest such comments.<P>
And you can comment out sections of html-source without any problems
for the browser. This simply is possible because comments in the
hsc-inputfile are not included into the html-output file.<P>
Of course, if you need the standard comments, you can use
<BLOCKQUOTE>
<TG>!-- This is a html/sgml-comment --</TG>
</BLOCKQUOTE>
as usual.<P>
<H2>Include files</H2>
A sourcefile can be included to the text using
<BLOCKQUOTE>
<TG>$INCLUDE FILE="filename"</TG>
</BLOCKQUOTE>
<H2>Insert several stuff</H2>
You can insert several stuff using the tag
<BLOCKQUOTE>
<TG>$INSERT what [options]</TG>
</BLOCKQUOTE>
<H3>Insert current date and time</H3>
You can insert the current date and time simply by
<UBQ><TG>$INSERT TIME</TG></UBQ>
using a default format.<P>
Optionally, you can pass a
format-string, that discribes the time (see ANSI-C function
<CODE>strftime()</CODE> for discription of placeholders).Example:<BR>
<UBQ><TG>$INSERT TIME FORMAT="%b %d %y"</TG></UBQ>
inserts current date with the strange ANSI-C <CODE>__TIME__</CODE>-format.
<H3>Insert text</H3>
As an required argument, you must give a string
that contains the text. Example:
<UBQ><TG>$INSERT TEXT="hugo was here!"</TG></UBQ>
inserts the text "<CODE>hugo was here</CODE>". Of course, this does not
make much sense.<TG>$INSERT TEXT="..."</TG> is suggested to be used
with attribute values. Example:
<UBQ><TG>$INSERT TEXT=<href></TG></UBQ>
inserts the value of the macro-attribute <CODE>href</CODE>.
<H2>Define Macros</H2>
I think, this feature needs an <A HREF="features/macros.html">
own page</A>...
<P>
<* navigation bar *>
<MAIN>
<PREV href="install.html">
<NEXT href="features/syntax.html">
</WEBPAGE>